package LambdaInstance;

/*
 * Author: JacksonCoder
 * FileName: test
 * Version: 1.0.0
 * Date: 2025/2/28
 */

import java.util.*;

import java.util.Arrays;

public class test {

    public static void main(String[] args) {
        new Thread(() -> System.out.println("hello world")).start();

        printMsg();
    }

    public static void printMsg() {
        List<String> names = Arrays.asList("Alice", "bob", "Charlie");

        names.stream()
                .filter(name -> name.startsWith("A"))
                .forEach(System.out::println);
    }

}
